package com.guigu.alibaba.service;


import com.guigu.alibaba.fallback.PaymentFallback;
import com.guigu.springcloud.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


//@Component
@FeignClient(value = "cloud-alibaba-nacos-openfeign-service", fallback = PaymentFallback.class)
public interface PaymentService {
    @GetMapping(value = "/nacosOpenfeign/{id}")
    CommonResult getById(@PathVariable("id") Long id);
}
